/**
    Copyright (c) 2010 yakiimo02
    Distributed under the New BSD License.
    See included license.txt or http://www.yakiimo3d.com/NewBSDLicense.txt
**/

/**
    @brief  Fragment data.
    @author yakiimo02
    @date   2010/6/20
**/
struct FragmentData
{
    unsigned int nColor;                // Pixel color
    unsigned int nDepthAndCoverage;        // Depth + coverage
};

/**
    @brief  Fragment linked list node.
    @author yakiimo02
    @date   2010/6/20
**/
struct FragmentLink
{
    FragmentData fragmentData;    // Fragment data
    unsigned int nNext;            // Link to next fragment
};

/**
    Constant buffer for StoreFragmentsAndRender and StoreFragments
*/
cbuffer CB : register( b0 )
{
    uint g_nFrameWidth      : packoffset( c0.x );
    uint g_nFrameHeight     : packoffset( c0.y );
    uint g_nReserved0       : packoffset( c0.z );
    uint g_nReserved1       : packoffset( c0.w );
}
